import request from '@/utils/request'

// 查询骑手的基本信息列表
export function listRiderBasicInfo(query) {
  return request({
    url: '/system/RiderBasicInfo/list',
    method: 'get',
    params: query
  })
}

// 查询骑手的基本信息详细
export function getRiderBasicInfo(riderId) {
  return request({
    url: '/system/RiderBasicInfo/' + riderId,
    method: 'get'
  })
}

// 新增骑手的基本信息
export function addRiderBasicInfo(data) {
  return request({
    url: '/system/RiderBasicInfo',
    method: 'post',
    data: data
  })
}

// 修改骑手的基本信息
export function updateRiderBasicInfo(data) {
  return request({
    url: '/system/RiderBasicInfo',
    method: 'put',
    data: data
  })
}

// 删除骑手的基本信息
export function delRiderBasicInfo(riderId) {
  return request({
    url: '/system/RiderBasicInfo/' + riderId,
    method: 'delete'
  })
}
